#include <iostream>
#include <vector>
#include <iomanip>
#include <random>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <map>
#include <functional>

std::string fixed_len_str(float f, int len) {
    std::stringstream ss;
    ss << std::setiosflags(std::ios::fixed) << std::setprecision(len) << f;
    return ss.str();
}

std::string convert_fv_in_game(float f) {
    return fixed_len_str(f, 9);
}

std::string convert_fv_at_buff(float f) {
    std::string r = fixed_len_str(f, 17);
    std::stringstream ss;
    ss << std::setprecision(17) << f;
    std::string r2 = ss.str();
    if (r2.size() < r.size()) {
        return r2;
    }
    return r;
}

int main(int argc, char **argv) {
    float f;
    while (std::cin >> f) {
        std::string fv_in_game = convert_fv_in_game(f);
        std::string fv_at_buff = convert_fv_at_buff(f);

        std::cout << "# fv_in_game: " << fv_in_game << std::endl;
        std::cout << "# fv_at_buff: " << fv_at_buff << std::endl;
    }

    return 0;
}
